//
//  BiaoQianOnShiLiBaoGaoTableViewCell.m
//  MyYiJianKangApp
//
//  Created by 张国文 on 16/5/5.
//  Copyright © 2016年 hangzhouyijiyin. All rights reserved.
//

#import "BiaoQianOnShiLiBaoGaoTableViewCell.h"



@implementation BiaoQianOnShiLiBaoGaoTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self addMySubview];
    }
    return self;
}

// 布局
- (void)addMySubview
{

    
    
    // 底部灰色条
    UILabel *grayLineOnBottom = [[UILabel alloc] initWithFrame:CGRectMake(0, 289 * kAdjustParamater, kScreenWidth, 1 * kAdjustParamater)];
    grayLineOnBottom.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.07];
    [self.contentView addSubview:grayLineOnBottom];
}

- (void)setBiaoQianArray:(NSMutableArray *)biaoQianArray
{
    if (self.myCloudView == nil) {
        self.myCloudView = [[CloudView alloc] initWithFrame:CGRectMake(50 * kAdjustParamater, 30 * kAdjustParamater, 275 * kAdjustParamater, 230 * kAdjustParamater) andNodeCount:7 andArray:biaoQianArray];
        self.myCloudView.delegate  =self;
        [self.contentView addSubview:_myCloudView];
    }
    
}

- (void)didSelectedNodeButton:(CloudButton *)button
{
    
}

@end
